package com.ihrm.domain.company.response;

import com.ihrm.domain.company.Company;
import com.ihrm.domain.company.Department;
import lombok.*;


import java.util.List;


/**
 * @author chentao
 */
@Getter
@Setter
@NoArgsConstructor
public class DeptListResult {
    private String companyId;

    private String companyName;
    /**
     * 公司联系人
     */
    private String companyManage;

    private List<Department> depts;

    public DeptListResult(Company company,List depts){
        this.companyId=company.getId();
        this.companyName=company.getName();
        this.companyManage=company.getLegalRepresentative();
        this.depts=depts;
    }
}
